var fs = require('fs');

fs.writeFileSync('corn.txt', 'corn is good, corn is life!');

console.log(fs.readFileSync('corn.txt').toString());